package com.yan.action;

import com.opensymphony.xwork2.ModelDriven;
import com.yan.pojo.User;
import com.yan.service.UserService;

/**
 *@className:USerAction
 * @author:颜烈
 * @date:2017年12月25日
 * @Discription:
 */

public class UserAction implements ModelDriven<User> {

	private User user = new User();
	private UserService userService;
	
	public UserService getUserService() {
		return userService;
	}

	public void setUserService(UserService userService) {
		this.userService = userService;
	}

	/**
	 * @Discription:使用modelDriven注入属性
	 */
	public User getModel() {
		return user;
	}
	
	
	
}
